/**
 * SysConfigsService.java
 * Copyright(C) 1949++ 中华人民共和国
 * 深圳市盛开互联网金融顾问有限公司.
 * All rights reserved.
 * E-mail:server@skjr.net
 * SKDate:2017-11-16 17:28:59
 */
package com.huamao.zh.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.huamao.zh.base.PageWrapper;
import com.huamao.zh.mapper.SysConfigsMapper;
import com.huamao.zh.model.SktSysConfigs;
import com.huamao.zh.service.SysConfigsService;

@Service
@Transactional
public class SysConfigsServiceImpl extends ServiceImpl<SysConfigsMapper, SktSysConfigs> implements SysConfigsService {

	@Autowired
	private SysConfigsMapper sysConfigsMapper;

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktSysConfigs add(SktSysConfigs sysConfigs) throws Exception {
		sysConfigsMapper.add(sysConfigs);
		return sysConfigs;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktSysConfigs addSelective(SktSysConfigs sysConfigs) throws Exception {
		sysConfigsMapper.addSelective(sysConfigs);
		return sysConfigs;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int delete(Map<String, Object> map) {
		return sysConfigsMapper.delete(map);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int update(SktSysConfigs sysConfigs) throws Exception {
		return sysConfigsMapper.update(sysConfigs);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public int updateSelective(SktSysConfigs sysConfigs) throws Exception {
		return sysConfigsMapper.updateSelective(sysConfigs);
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public SktSysConfigs get(Integer configId) {
		SktSysConfigs sysConfigs = sysConfigsMapper.get(configId);
		return sysConfigs;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public PageWrapper<SktSysConfigs> search(PageWrapper<SktSysConfigs> pageWrapper) {
		List<SktSysConfigs> sysConfigss = sysConfigsMapper.search(pageWrapper);
		pageWrapper.setList(sysConfigss);
		return pageWrapper;
	}

	/**
	 * 功能说明： Author： SKDate:2017-11-16 17:28:59
	 */
	public List<SktSysConfigs> queryList(Map<String, Object> map) {
		return sysConfigsMapper.queryList(map);
	}

	@Override
	public SktSysConfigs getByFieldCode(String fieldCode) {
		SktSysConfigs sysConfigs = sysConfigsMapper.getByFieldCode(fieldCode);
		return sysConfigs;
	}

	@Override
	public SktSysConfigs selectOne(SktSysConfigs skSysConfigs) {
		return sysConfigsMapper.selectOne(skSysConfigs);
	}

	@Override
	public List<SktSysConfigs> selectAll() {
		return sysConfigsMapper.selectAll();
	}
}